import { _decorator, Component, Label } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('InfoItem')
export class InfoItem extends Component {
    @property(Label)
    title: Label = null;
    @property(Label)
    content: Label = null;

    setInfo(title: string, content: string) {
        this.title.string = title;
        this.content.string = content;
    }
}

